package com.atguigu.realtime.util

import com.atguigu.realtime.util.JDBCUtil.query

/**
 * Author atguigu
 * Date 2020/11/24 10:41
 */
object Test {
    def main(args: Array[String]): Unit = {
        val url = "jdbc:mysql://hadoop162:3306/gmall?user=root&password=aaaaaa&useSSL=false"
        val list: List[Map[String, Object]] = JDBCUtil.query(url, "select * from sku_info", Nil)
        list.foreach(println)
    }
}
